package dipl.algorithm.impl.fp;

import dipl.algorithm.impl.IntersectionType;
import dipl.algorithm.math.fp.primitive.Interval1df;

/** Class represents an intersection */
public class Intersection {

	public Intersection( Interval1df f, Interval1df g, IntersectionType type ) {
		this.f = f;
		this.g = g;
		this.type = type;
	}

	@Override
	public String toString() {
		String s = "(f"+f.toString()+", "+"g"+g.toString()+")";
		s += "("+type.Name()+")";
		return s;
	}

	/** domain in which a curve intersects another one */
	public Interval1df f;
	/** domain in which a curve intersects another one */
	public Interval1df g;
	/** intersection type */
	public IntersectionType type;
}
